package com.demo.design.behavioral.template;

public abstract class OneDayTemplate {

    public void oneDayDoSomeThing() {
        morning();
        noon();
        afternoon();
        evening();
    }

    public abstract void morning();

    public void noon() {
        System.err.println("AM 12:00");
        System.err.println("吃午饭");
    }

    public abstract void afternoon();

    public abstract void evening();

}
